snippet eps
	filenametemplate "%j-%c.eps"; 
	${1}
snippet begin
	prologues:=3;
	verbatimtex
	%&latex
	\documentclass{minimal}
	\begin{document}
	etex
	beginfig(0);
	${1}
	(_a,_b)=llcorner currentpicture;
	picture mypic;
	mypic=currentpicture shifted (origin-(_a,_b));
	currentpicture:=nullpicture;
	draw mypic;
	endfig;
	end
snippet move
	(_a,_b)=llcorner currentpicture;
	picture mypic;
	mypic=currentpicture shifted (origin-(_a,_b));
	currentpicture:=nullpicture;
	draw mypic;
